<?php
class EntidadesTerritoriale extends AppModel {
	var $name = 'EntidadesTerritoriale';
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $belongsTo = array(
		'Municipio' => array(
			'className' => 'Municipio',
			'foreignKey' => 'municipio_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

	var $hasMany = array(
		'Canasta' => array(
			'className' => 'Canasta',
			'foreignKey' => 'entidades_territoriale_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Capacitacione' => array(
			'className' => 'Capacitacione',
			'foreignKey' => 'entidades_territoriale_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Capacitadore' => array(
			'className' => 'Capacitadore',
			'foreignKey' => 'entidades_territoriale_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Concertacione' => array(
			'className' => 'Concertacione',
			'foreignKey' => 'entidades_territoriale_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'FotografiasSeguimiento' => array(
			'className' => 'FotografiasSeguimiento',
			'foreignKey' => 'entidades_territoriale_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'InstitucionesEducativa' => array(
			'className' => 'InstitucionesEducativa',
			'foreignKey' => 'entidades_territoriale_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'ResultadosEntidade' => array(
			'className' => 'ResultadosEntidade',
			'foreignKey' => 'entidades_territoriale_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'SegumientosEquipo' => array(
			'className' => 'SegumientosEquipo',
			'foreignKey' => 'entidades_territoriale_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Tallere' => array(
			'className' => 'Tallere',
			'foreignKey' => 'entidades_territoriale_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);


	var $hasAndBelongsToMany = array(
		'InstitucionesEducativa' => array(
			'className' => 'InstitucionesEducativa',
			'joinTable' => 'instituciones_educativas_entidades_territoriales',
			'foreignKey' => 'entidades_territoriale_id',
			'associationForeignKey' => 'instituciones_educativa_id',
			'unique' => true,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'finderQuery' => '',
			'deleteQuery' => '',
			'insertQuery' => ''
		),
		'User' => array(
			'className' => 'User',
			'joinTable' => 'users_entidades_territoriales',
			'foreignKey' => 'entidades_territoriale_id',
			'associationForeignKey' => 'user_id',
			'unique' => true,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'finderQuery' => '',
			'deleteQuery' => '',
			'insertQuery' => ''
		)
	);

}
